<template>
  <div class="waiter" @click="waiter">服务铃</div>
</template>

<script>
import axios from 'axios'
export default {
  name: 'shopWaiter',
  components: {},
  data() {
    return {
      
    }
  },
  methods: {
    waiter() {
      axios.post('api/scan_call_attendant',{id:this.$store.state.id}).then( res => {
        console.log(res)
        this.$toast(res.data.info)
      }).catch( error => {
        console.log(error)
      })
    }
  }
} 
</script>

<style lang="stylus" scoped>
  .waiter
    width 1.4rem
    height 0.8rem
    border-radius 0.4rem
    text-align center
    line-height  0.8rem
    color #ffffff
    font-size 0.28rem
    background rgba(32,29,26,.82)
</style>